package com.ktwlsoft.archivemanage.domain.dao.repository.businessInspect;

import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.InspectSubjectItem;
import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.SelfInspectSubjectItem;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * self_inspect_subject_item--自查--业务指导题目选项-Mapper层接口
 *
 * @author zhuhe
 * @date 2023/06/25
 */
@Mapper
public interface SelfInspectSubjectItemMapper extends BaseMapper<SelfInspectSubjectItem>{

    /**
     * 查询列表 on 2019-11-12 15:00:46
     * @param inspectSubjectItem inspectSubjectItem
     * @return List<InspectSubjectItem>
     */
    List<SelfInspectSubjectItem> findList(SelfInspectSubjectItem inspectSubjectItem);


    /**
     * 根据id查询信息 on 2019-11-12 15:00:46
     * @param id id
     * @return InspectSubjectItem
     */
    SelfInspectSubjectItem getById(Long id);

    /**
     * 根据题目ID查询信息 on 2019-11-12 15:00:46
     * @param subjectId	题目ID
     * @return InspectSubjectItem
     */
    List<SelfInspectSubjectItem> getBySubjectId(Long subjectId);

    /**
     * 根据id删除信息 on 2019-11-12 15:00:46
     * @param id id
     * @return int
     */
    int deleteById(Long id);

    /**
     * 根据id集合批量删除信息 on 2019-11-12 15:00:46
     * @param ids ids
     * @return int
     */
    int deleteByIds(List<Long> ids);

    /**
     * 插入 on 2019-11-12 15:00:46
     * @param inspectSubjectItem inspectSubjectItem
     * @return int
     */
    int insert(SelfInspectSubjectItem inspectSubjectItem);

    /**
     * 批量插入 on 2019-04-23 10:57:02
     * @param list list
     * @return int
     */
    int manyInsert(List<SelfInspectSubjectItem> list);

    /**
     * 更新 on 2019-11-12 15:00:46
     * @param inspectSubjectItem inspectSubjectItem
     * @return int
     */
    int update(SelfInspectSubjectItem inspectSubjectItem);
}
